<?php if(!defined('IN_PISCES')){exit('Access Denied.');}?>

{if !empty($this->data['adList']) && !empty($this->data['adList'][10])} 
<!--{loop $this->data['adList'][10] $mk $item}-->
<div class="adbox mb5"> {$item['code']} </div>
<!--{/loop}-->
{/if} 

<link rel="stylesheet" href="{$this->data['baseurl']}css/tzm/goods.css" type="text/css">

<div id="container">
	<div class="direct">
	<span id="direct_con" class="fl">您现在的位置：{if $this->data['con']['keyword']==''}<a href="{$this->data['baseurl']}">{$this->data['site']['site_name']}首页</a>&gt;{else}<a href="{url('Default', 'List',array('k'=>$this->data['con']['keyword']))}">全部</a>{/if}
	{if !empty($this->data['parentCategoryList'])} 
	<!--{loop $this->data['parentCategoryList'] $cat}--> 
	<a href="{url('Default', 'List',array('c'=>$cat['id'],'k'=>$this->data['con']['keyword']))}"><font class="show_key_word strong">{$cat['name']}</font></a> 
	<!--{/loop}--> 
	{/if}&gt;{$this->data['product']['item']['title']}</span> 
	</div>
{if !$this->data['product']}
	<div class="clear"></div>
	<div class="g-topline"></div>
	<div style="margin-top:0;" class="round-box">
	<div style="border-top:none;" id="goodsDetailWarp" class="tab_content round-box-border">
	<div class="goods_tab_content detab" style="display: block;"> <span style="width:860px; margin:0px auto 0 auto; background:#FFFBEF;" class="help-notice">您在找这件商品吗? 商家已经把商品下架,你可能需要搜索一下,看看哪家店铺还有.<br>
	<a href="{url('Default','Sitemap')}" target="_blank">你还可以查看{$this->data['site']['site_name']}所有的商品分类和品牌&gt;&gt;</a><br>
	</span> </div>
	</div>
	</div>
	{if $this->data['config']['search8']['enable'] && $this->data['config']['search8']['keyword']!=''}<script language="javascript">setTimeout(function(){document.location="{url('Default','Search8',array('q'=>$this->data['cf']->getRandKeyword($this->data['config']['search8']['keyword'])))}";}, 2000);</script>{/if}
	{else}
	<div class="clear"></div>
	<div class="g-topline"></div>
	<div class="round-box">
	<div id="product" class="round-border">
	<div class="product-img"> <img style="margin-top: 10px;" src="{$this->data['baseurl']}images/loading.gif" u="{EncodeImg $this->data['product']['item']['pic_url']}" title="{$this->data['product']['item']['title']}"> </div>	
	<div style="position:relative;" id="goods_intro">
	<div id="pro_name">
	<h2>{$this->data['product']['item']['title']}</h2>
	</div>
	<div class="new-price">
	<div class="price-title f-l sale-price-title" id="statusPriceTitle"><span id="statusPrice"><span class="price-big">{$this->data['product']['item']['price']-0}</span>&nbsp;<span style="color:#F00; font-weight:bold; font-size:14px">元</span>&nbsp;&nbsp;&nbsp;&nbsp;{if $this->data['return']['rate']>0 && round($this->data['product']['commission']['commission']*$this->data['return']['rate']/100,2)>0}<span class="fc-999">返现：</span>{round($this->data['product']['commission']['commission']*$this->data['return']['rate']/100,2)}元&nbsp;&nbsp;<span class="fc-999">节省：{round($this->data['product']['commission']['commission']*$this->data['return']['rate']/100,2)}元</span></span>{/if}</div>
	<div class="clear"></div>
	</div>
	<div class="new-attr"><span>商家信用:{if $this->data['product']['seller_credit_score']>0}<img src="{$this->data['baseurl']}images/credit/level_{$this->data['product']['seller_credit_score']}.gif" />{else}暂无交易记录{/if}</span>&nbsp;&nbsp;&nbsp;&nbsp;<span>物流运费:{if $this->data['product']['item']['freight_payer']=='seller'}卖家承担{else}买家承担{/if}</span></div>
	<div class="new-attr">商品所在地：<span>{$this->data['product']['item']['location']['state']} {$this->data['product']['item']['location']['city']}</span> {if $detail} <span> 返&nbsp;现：{if $this->data['product']['item']['commission']}{$this->data['product']['item']['commission']}元{else}不返现{/if} </span> {/if}</div>
	<div id="shipping_user">库存数量：<span class="red">&nbsp;{$this->data['product']['item']['num']}件</span></div>
	<div id="buyit">
	<div id="btn_area"><a linktype="click-url" href="#" nid="{$this->data['product']['item']['num_iid']}" target="_blank"><img src="{$this->data['baseurl']}images/buy.png" border="0" width="124" /></a>&nbsp;&nbsp;&nbsp;<a href="{url('Post','Product',array('url'=>base64_encode($this->data['currentUrl'])))}" target="_blank" title="分享给好友"><img src="{$this->data['baseurl']}images/share.png" border="0" width="124" /></a>&nbsp;&nbsp;&nbsp;<a linktype="click-url" href="#" nid="{$this->data['product']['item']['num_iid']}" target="_blank"><img src="{$this->data['baseurl']}images/more.png" border="0" width="124" /></a>&nbsp;&nbsp;&nbsp;<a linktype="shop-click-url" href="#" nid="{$this->data['product']['item']['num_iid']}" target="_blank"><img src="{$this->data['baseurl']}images/shop.png" border="0" width="124" /></a> </div>
	</div>
	</div>
	<div class="clear"></div>
	<div style=" border:1px solid #DDDDDD; border-top:none; border-bottom:none; padding-left:15px;"> <img border="0" style=" margin-top:15px;" usemap="#Map" src="{$this->data['baseurl']}images/share_detail.png">
	<map name="Map">
	<area onclick="window.open(' http://v.t.sina.com.cn/share/share.php?url=http://{$this->data['domain']}{url('Default','View',array('id'=>$this->data['product']['item']['num_iid']))}&amp;title={urlencode($this->data['product']['item']['title'])}')" href="javascript:void(0);" coords="430,21,505,47" shape="rect">
	<area href="javascript:void((function(s,d,e){if(/renren\.com/.test(d.location))return;var f='http://share.renren.com/share/buttonshare?link=',u=d.location,l=d.title,p=[e(u),'&amp;title=',e(l)].join('');function%20a(){if(!window.open([f,p].join(''),'xnshare',['toolbar=0,status=0,resizable=1,width=626,height=436,left=',(s.width-626)/2,',top=',(s.height-436)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();})(screen,document,encodeURIComponent));" coords="520,21,585,47" shape="rect">
	<area onclick="window.open('http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url='+encodeURIComponent(document.location.href));return false;" href="javascript:void(0);" coords="590,22,665,48" shape="rect">
	<area onclick="window.open('http://v.t.qq.com/share/share.php?title={urlencode($this->data['product']['item']['title'])}+http://{$this->data['domain']}{url('Default','View',array('id'=>$this->data['product']['item']['num_iid']))}')" href="javascript:void(0);" coords="675,22,750,48" shape="rect">
	<area onclick="window.open('http://www.douban.com/recommend/?url=http://{$this->data['domain']}{url('Default','View',array('id'=>$this->data['product']['item']['num_iid']))}&amp;title={urlencode($this->data['product']['item']['title'])}')" href="javascript:void(0);" coords="765,23,835,47" shape="rect">
	<area href="javascript:void(0)" onclick="window.open('http://share.jianghu.taobao.com/share/addShare.htm?title='+encodeURIComponent(document.location)+'&amp;url='+encodeURIComponent(location.href)+'&amp;content=','_blank','scrollbars=no,width=650,height=500,left=75,top=20,status=no,resizable=yes'); void 0" coords="845,23,905,47" shape="rect">
	</map>
	</div>
	</div>
	<div class="clear"></div>
	</div>
	<div id="relatedProduct">
	正在加载{$this->data['product']['item']['title']}的相关商品....
	</div>
	<div class="clear"></div>
	<ul id="goodsDetail" class="tab-style-1">
	<li class="sel">商品描述</li>
	</ul>
	<div style="margin-top:0;" class="round-box">
	<div style="border-top:none;" id="goodsDetailWarp" class="tab_content round-box-border">
	<div class="goods_tab_content detab" style="display: block;"> 
	
	<div class="goods-photo-warp">
	<div class="goods-photo-list">
	<div class="goods-photo-max"><img width="500" height="500" style="margin-top:15px; margin-left:25px;" id="detailMaxImg" src="{$this->data['baseurl']}images/loading.gif" u="{EncodeImg $this->data['product']['item']['pic_url']}"></div>
	<div class="goods-photo-small"> {if !empty($this->data['adList']) && !empty($this->data['adList'][9])} 
	<!--{loop $this->data['adList'][9] $mk $item}-->
	<div class="adbox mt5"> {$item['code']} </div>
	<!--{/loop}--> 
	{/if} </div>
	<div class="clear"></div>
	</div>
	<div style=" text-align:right; height:30px; line-height:30px; padding-right:20px;"><a style="color:#999999;" linktype="click-url" href="#" nid="{$this->data['product']['item']['num_iid']}" target="_blank">*产品因不同批次和不同产地，产品包装与细节图会有所不同，请以收到的实物为准！如对产品包装有疑问，可以与商家咨询！</a></div>
	</div>
	<div class="goods_dec">{if $this->data['config']['detail']['showcontent']}{$this->data['product']['item']['desc']}{/if}</div>
	</div>
	</div>
	</div>
	
{/if}
{if !empty($this->data['keywordList'])}
<div class="clear"></div>
<div class="suggest-keyword">
	<ul>
		<li><a>别人都在找：</a></li>
		<!--{loop $this->data['keywordList'] $item}-->
		<li><a target="_blank" href="{url('Default','List',array('k'=>$item['name']))}" title="{$item['name']}">{$item['name']}</a></li>
		<!--{/loop}-->
	</ul>
</div>
{/if}
{if !empty($this->data['adList']) && !empty($this->data['adList'][11])}
<div class="clear"></div>
<!--{loop $this->data['adList'][11] $mk $item}-->
<div class="adbox mt5"> {$item['code']} </div>
<!--{/loop}--> 
{/if} 
<script language="javascript">
var defaultClickUrl	= "{$this->data['clickUrl']}";
replaceLink();
replaceImage();
{if $this->data['product']}
$.ajax({
    url: "{$this->data['viewHistoryUrl']}"
});

$.ajax({
    url: base64decode("{base64_encode($this->data['relatedProductUrl'])}"),
    type: 'POST',
    data:{'cid':{$this->data['product']['item']['cid']},'q':'{$this->data['searchKey']}','rnum':Math.random()},
    dataType: 'html',
    success: function(res){
		$('#relatedProduct').html(res);
	}
});
{/if}
</script>